#region 模块信息
// **********************************************************************
// 作者(Author):                  GUO
// 创建时间(CreateTime):           2019/3/22 15:16:32
// **********************************************************************
#endregion
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

/// <summary>
/// 所有UI视图层基类
/// </summary>
public class UIViewBase : UIModuleBase {
    protected override void OnAwake()
    {
        Button[] btns = GetComponentsInChildren<Button>(true);
        for (int i = 0; i < btns.Length; i++)
        {
            EventTriggerListener.Get(btns[i].gameObject).onClick += ButtonClick;
        }
    }

    void ButtonClick(GameObject go)
    {
         OnBtnClick(go);
    }

    protected virtual void OnBtnClick(GameObject go)
    {
        
    }
}
